<?php
/**
 * Created by PhpStorm.
 * User: Ghost
 * Date: 2017/5/12
 * Time: 11:15
 */
namespace app\common\validate;


use think\Validate;

class Renwus extends Validate
{
    protected $rule = [
        'date'   => 'require',
        'renwu'  => 'require|regex:[1-9]\d* ',
    ];
    protected $message =[
        'date.require'=>'月份必填',
        'renwu.require'=>'任务必填',
        'renwu.regex'=>'任务必须为正整数',
    ];
    protected $scene = [
        'date'   =>  ['date'],
        'renwu'  =>  ['renwu'],
    ];
}